/*
 * Copyright (c) 2017 22420103@QQ.COM 版权所有
 */
package com.lehe.service.impl;

import com.lehe.common.exceptions.LHServiceException;
import com.lehe.entry.wx.message.ReqBaseMessage;
import com.lehe.entry.wx.message.RespBaseMessage;

/**
 * 以http post json方式请求微信服务<br>
 *
 * @author 王丹
 * @FileName WeChatPostDataExecuteService.java<br>
 * @Language Java<br>
 * @date 2016-01-08<br>
 */
public abstract class WeChatPostDataExecuteService extends AbstractWeChatExecuteService<ReqBaseMessage> {

    @Override
    public RespBaseMessage execute(ReqBaseMessage reqMessage) throws LHServiceException {
        String respHtml = httpSendService.postByJson(queryRequestUrl(), buildParamsJson(reqMessage));
        return convertRespMessage(respHtml);
    }
}
